﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Site1.Master" AutoEventWireup="true" CodeBehind="Detalle.aspx.cs" Inherits="BoxScore.Jornada.Detalle" %>
<%@ Register src="../torneo/_info.ascx" tagname="_info" tagprefix="uc1" %>
<%@ Register src="../compartidas/_volver.ascx" tagname="_volver" tagprefix="uc2" %>
<%@ Register src="../compartidas/_publicidadDisponible.ascx" tagname="_publicidadDisponible" tagprefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="lateral1" runat="server">
    <uc3:_publicidadDisponible ID="_publicidadDisponible1" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="lateral2" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="lateral3" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="contenido" runat="server">

    <uc1:_info ID="_info1" runat="server" />
    <br />
    
    <h2 class="title">Juegos de la Jornada</h2>
    
    <uc2:_volver ID="_volver2" runat="server" />
    
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="ObjectDataSource1">
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:HiddenField ID="idjuego" Visible="true" runat="server" Value='<%# Eval("id", "{0}") %>' />
                    
                    <asp:HiddenField ID="HiddenField1" runat="server" 
                        Value='<%# Eval("id_team_hc", "{0}") %>' />
                    <asp:HiddenField ID="HiddenField2" runat="server" 
                        Value='<%# Eval("id_team_visitor", "{0}") %>' />



<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
    <Columns>
        <asp:TemplateField>
            <ItemTemplate>
                <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
                    DataSourceID="ObjectDataSource1">
                    <Fields>
                        <asp:BoundField DataField="team_visitor" HeaderText="team_visitor" 
                            ShowHeader="False" SortExpression="team_visitor" />
                        <asp:BoundField DataField="team_hc" HeaderText="team_hc" ShowHeader="False" 
                            SortExpression="team_hc" />
                    </Fields>
                </asp:DetailsView>
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                    SelectMethod="getGameResult" TypeName="BoxScore.Model.BoxScoreBD">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="idjuego" DefaultValue="" Name="id" 
                            PropertyName="Value" Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="1"></asp:TemplateField>
        <asp:TemplateField HeaderText="2"></asp:TemplateField>
        <asp:TemplateField HeaderText="3"></asp:TemplateField>
        <asp:TemplateField HeaderText="4"></asp:TemplateField>
        <asp:TemplateField HeaderText="5"></asp:TemplateField>
        <asp:TemplateField HeaderText="6"></asp:TemplateField>
        <asp:TemplateField HeaderText="7"></asp:TemplateField>
        <asp:TemplateField HeaderText="C">
            <ItemTemplate>
                <asp:DetailsView ID="DetailsView2" runat="server" 
                    DataSourceID="ObjectDataSourceC" Height="50px" Width="125px" 
                    AutoGenerateRows="False">
                    <Fields>
                        <asp:BoundField DataField="runs_visitor" HeaderText="runs_visitor" 
                            SortExpression="runs_visitor" />
                   
                        <asp:BoundField DataField="runs_hc" HeaderText="runs_hc" 
                            SortExpression="runs_hc" />
                    </Fields>
                </asp:DetailsView>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="H"></asp:TemplateField>
        <asp:TemplateField HeaderText="E"></asp:TemplateField>
    </Columns>
</asp:GridView>


                <asp:ObjectDataSource ID="ObjectDataSourceC" runat="server" 
                    SelectMethod="getGameResult" TypeName="BoxScore.Model.BoxScoreBD">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="idjuego" Name="id" PropertyName="Value" 
                            Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>


                    
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    
    
    
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        SelectMethod="getGamesByTorneoAndJornada" TypeName="BoxScore.Model.BoxScoreBD">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="0" Name="idjornada" 
                QueryStringField="id" Type="Int32" />
            <asp:QueryStringParameter DefaultValue="0" Name="idtorneo" 
                QueryStringField="torneo" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    
    

    <uc2:_volver ID="_volver1" runat="server" />


</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="resultados" runat="server">
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="proximos" runat="server">
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="publicidadAjena" runat="server">
</asp:Content>
<asp:Content ID="Content9" ContentPlaceHolderID="publicidad" runat="server">
</asp:Content>
